//
//  Game.h
//  SWEngiOS
//
//  Created by Eric Augustine on 3/27/12.
//  Copyright 2012 UW - Parkside. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Player, Guess, Bet, Question;

@interface Game : NSObject {
	NSString* name;
	NSMutableArray* players;
	NSInteger numPlayers;
	NSString* scoreType;
	Question* currentQuestion;
	NSInteger nextQuestion;
	NSMutableArray* guesses;
	NSMutableArray* bets;
	NSMutableArray* questions;
	BOOL running;
}

@property (retain) NSString* name;
@property (retain) NSMutableArray* players;
@property NSInteger numPlayers;
@property (retain) NSString* scoreType;
@property (retain) Question* currentQuestion;
@property NSInteger nextQuestion;
@property (retain) NSMutableArray* guesses;
@property (retain) NSMutableArray* bets;
@property (retain) NSMutableArray* questions;
@property BOOL running;

-(id) init;
-(id) initWithName: (NSString*)gameName andNumOfPlayers: (NSInteger)numOfPlayers;
-(BOOL) addPlayer: (Player*)p;
-(void) displayQuestion;
-(void) displayAnswer;
-(void) receiveGuess: (Guess*)g;
-(void) clearGuesses;
-(void) clearBets;
-(void) receiveBets: (Bet*)b;
-(void) printBets;
-(void) winnings;
-(void) resetChipBets;
//-(NSMutableArray*) getQuestionsFromFile: (NSString*)fn;

@end
